package com.atxyj.srb.sms.clent;

import com.atxyj.common.result.R;
import com.atxyj.srb.sms.clent.fallback.CoreUserInfoClientFallback;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: xyj
 * @date: 2021/8/5
 */
@FeignClient(value = "service-core" , fallback = CoreUserInfoClientFallback.class)
public interface CoreUserInfoClient {

    @ApiOperation("校验手机号是否注册")
    @GetMapping("/api/core/userInfo/checkMobile/{mobile}")
    public boolean checkMobile(@PathVariable String mobile);
}
